package com.uyayo.framework.pagehelper.util;


public class SqlUtil {
 
	private static final ThreadLocal<Object> LOCAL_TOTAL = new ThreadLocal<Object>(){
	    protected Long initialValue() {
	      return Long.valueOf(0);
	    }
	};

	  public static void setTotal(Long count)
	  {
		  LOCAL_TOTAL.set(count);
	  }

	  public static Long getTotal()
	  {
	    return ((Long)LOCAL_TOTAL.get()).longValue();
	  }

	  public static void clean() {
		  LOCAL_TOTAL.remove();
	  }  
}
